home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 018a / what300.zip / WPCONV.BAT < prev   
DOS Batch File  |  1991-04-30  |  935b  |  44 lines

  1. @echo off
  2. rem
  3. rem WPCONV.BAT
  4. rem
  5. rem Automate conversion using WHAT?format!
  6. rem
  7. rem Change to a directory containing
  8. rem assorted WordPerfect files and give
  9. rem the command:
  10. rem
  11. rem    for %f in (*.*) do wpconv %f
  12. rem
  13. rem The files are converted to DCA format
  14. rem using the correct version of WP's
  15. rem CONVERT.EXE.
  16. rem
  17. if not exist %1 goto :end
  18. set what=what
  19. c:\prog\what %1 /Q
  20. if errorlevel 33 goto :notwp
  21. if errorlevel 32 goto :wp
  22. if errorlevel  1 goto :notwp
  23. goto :end
  24. :wp
  25. if "%what%"=="WordPerfect 5.1" goto :wp51
  26. if "%what%"=="WordPerfect 5.0" goto :wp50
  27. if "%what%"=="WordPerfect 4.x" goto :wp4x
  28. echo New version: %what%
  29. goto :end
  30. :wp51
  31. c:\convert\convwp51 %1 d:\DCAstuff\%1 1 1 c:\text\wp51\std.crs
  32. goto :end
  33. :wp50
  34. c:\convert\convwp50 %1 d:\DCAstuff\%1 1 1
  35. goto :end
  36. :wp4x
  37. c:\convert\convwp42 %1 d:\DCAstuff\%1 1 1
  38. goto :end
  39. :notwp
  40. echo File is not WordPerfect format!
  41. :end
  42. set what=
  43.  
  44.